package distrcomp;

import java.io.Serializable;

/*
 * Address class
 */

public class Address implements Serializable {
	private static final long serialVersionUID = 1L;
	private String street;
	private String streetNumber;
	private String postalCode;
	private String city;
	private String country;
	
	public Address(String street, String streetNumber, String postalCode, String city, String country) {
		this.street = street;
		this.streetNumber = streetNumber;
		this.postalCode = postalCode;
		this.city = city;
		this.country = country;
	}
	
	public void print() {
		System.out.println(this.street + " " + this.streetNumber + ", " + this.postalCode + " " + this.city + ", " + this.country);
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getStreetNumber() {
		return streetNumber;
	}

	public void setStreetNumber(String streetNumber) {
		this.streetNumber = streetNumber;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}
	
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}
		
}
